<!-- 分类列表 -->
<template>
  <div class='ccia'>
    <el-row class="tac">
      <el-col>
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          @open="handleOpen"
          @close="handleClose">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>导航一</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="1-1">
                <div class="fx-bw news-info-box">
                  <span>选项1</span> <span class="news-info">9</span>
                </div>
              </el-menu-item>
              <el-menu-item index="1-2">
                <div class="fx-bw news-info-box">
                  <span>选项1</span> <span class="news-info">9</span>
                </div>
              </el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group >
              <el-menu-item index="1-3">选项3</el-menu-item>
            </el-menu-item-group>
            <el-submenu index="1-4">
              <template slot="title">选项4</template>
              <el-menu-item index="1-4-1">选项1</el-menu-item>
            </el-submenu>
          </el-submenu>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    props: [],
    data () {
      return {
        allexpanded: true, // 展开、折叠所有
        bmplist: [],
        usertype: 1
      }
    },
    methods: {
      handleOpen (key, keyPath) {
        console.log(key, keyPath)
      },
      handleClose (key, keyPath) {
        console.log(key, keyPath)
      }
    }
  }
</script>


<style lang='less' scoped>
  //  @import '../../../common/less/app';
  .menuitem{
    position: relative;
  }
  .el-menu{
    border-right: none;
  }
  .news-info-box{
    align-items: center;
  }
  .lileft.child{
    margin-left: 20px;
  }
  .news-info{
    position: absolute;
    right: 20px;
    height: fit-content;
    color: #fff;
    padding: 3px;
    border-radius: 12px;
    line-height: 1;
    background: rgb(249,200,81);
  }
  .marginL60 {
    margin-left: 15px;
  }

  .marginL10 {
    margin-left: 20px;
  }

  .ccia {
    border-radius: 2px;
    //  border: 1px solid red;
    //  padding: 0px 30px;
    overflow: hidden;
    .ccia_top {
      padding-right: 18px;
      padding-left: 15px;
      //  padding: 0 15px;
      //  height: 69px;
      //  background-color: pink;
      //  padding: 9px 18px 11px 15px;
      box-sizing: border-box;
      /deep/ .el-button {
        background-color: #28b7a3;
        color: #feffff;
        cursor: pointer;
        font-size: 12px;
        width: 88px;
        height: 32px;
        padding: 0;
      }
      .bgFFC {
        background-color: #ffc000;
        color: #ffffff;
      }
      .closeAll {
        background-color: #f0f0f0;
        color: #555555;
        border: 1px solid rgba(240, 240, 240, 1);
      }
      .top_right {
        /deep/ .el-input--suffix {
          width: 170px;
          border-right: 1px solid #edecec;
          height: 32px;
        }
        /deep/ .el-input {
          height: 32px;
        }

        .marginR30 {
          margin-right: 30px;
        }
      }
    }
  }

  .classfoot {
    padding-left: 15px;
  }

  .tree {
    width: 200px;
    margin-bottom: 16px;
    margin-left: 15px;
    ul {
      list-style: none;
    }
    li {
      margin: 10px 0;
      color: #6a6f7d;
      .treeItem {
        //   第一级
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 28px;
        line-height: 28px;
        font-size: 14px;
        cursor: pointer;
        padding-right: 10px;
        &:hover {
          .lileft {
            font-weight: bold;
            color: rgb(113,182,249);
          }
        }
      }
    }
    .lileft {
      span {
        padding-left: 10px;
        width: 25px;
        display: inline-block;
      }
    }
    .liright {
      //  右边显示
      float: right;
      img {
        width: 36px;
        height: 36px;
        vertical-align: middle;
      }
      span {
        color: #a4a3a3;
        font-size: 12px;
        padding: 3px 8px;
        //  padding: 13px;
        //  margin-right: 10px;
      }
      .bgYes {
        background: #28b7a3;
        color: #fff;
        cursor: pointer;
      }
      .bgNo {
        background: #b3b3b3;
        color: #000;
        cursor: pointer;
      }
      .itemClass {
        //  display: inline-block;
        width: 22px;
        height: 22px;
        border-radius: 2px;
        border: 1px solid #eff0f0;
        //  border: 1px solid red;
        text-align: center;
        cursor: pointer;
        i {
          line-height: 22px;
          font-size: 13px;
        }
      }
      .itemClass:hover {
        border: 1px solid #28b7a3;
        i:hover {
          color: #28b7a3;
        }
      }
    }
  }
</style>



